package com.dgz.common.core.constants;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: DongGuoZhen
 * @Date: 2024/12/06/16:04
 * @Description:
 */
// 缓存常量
public class CacheConstants {

    public final static String LOGIN_TOKEN_KEY = "logintoken";

    // 登录token过期时间 redis缓存
    public final static long EXP = 720;

    // 延长过期时间 redis缓存
    public static final long REFRESH_TIME = 180;

    // 验证码 redis缓存
    public static final String PHONE_CODE_KEY = "p:c:";

    // 短信验证码发送次数
    public static final String CODE_TIME_KEY = "c:t:";


    public static final String EXAM_UNFINISHED_LIST = "e:t:l:" ; // 未完赛的竞赛列表
    public static final String EXAM_HISTORY_LIST = "e:h:l:"; // 历史竞赛列表
    public static final String EXAM_DETAIL = "e:d:"; // 竞赛详细信息
    public static final String USER_EXAM_LIST = "u:e:l:";  // 用户的竞赛列表


    public static final String USER_DETAIL = "u:d:"; // 用户详细信息
    public static final long USER_EXP = 10;
    public static final String USER_UPLOAD_TIMES_KEY = "u:u:t";

    public static final String QUESTION_LIST = "q:l";

    public static final String QUESTION_HOST_LIST = "q:h:l";

    public static final String EXAM_QUESTION_LIST = "e:q:l:";

    public static final String USER_MESSAGE_LIST = "u:m:l:";

    public static final String MESSAGE_DETAIL = "m:d:";

    public static final String EXAM_RANK_LIST = "e:r:l:";

    public static final long DEFAULT_START = 0;

    public static final long DEFAULT_END = -1;
}
